home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / sa85x.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  1.6 KB  |  44 lines

  1. /* Copyright (C) 1996, 2000 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: sa85x.h,v 1.3 2000/09/19 19:00:47 lpd Exp $ */
  20. /* ASCII85 filter interface */
  21. /* Requires scommon.h; strimpl.h if any templates are referenced */
  22.  
  23. #ifndef sa85x_INCLUDED
  24. #  define sa85x_INCLUDED
  25.  
  26. #include "sa85d.h"
  27.  
  28. /* ASCII85Encode */
  29. typedef struct stream_A85E_state_s {
  30.     stream_state_common;
  31.     /* The following change dynamically. */
  32.     int count;            /* # of digits since last EOL */
  33.     int last_char;        /* last character written */
  34. } stream_A85E_state;
  35.  
  36. #define private_st_A85E_state()    /* in sfilter2.c */\
  37.   gs_private_st_simple(st_A85E_state, stream_A85E_state,\
  38.     "ASCII85Encode state")
  39. #define s_A85E_init_inline(ss)\
  40.   ((ss)->count = 0, (ss)->last_char = '\n')
  41. extern const stream_template s_A85E_template;
  42.  
  43. #endif /* sa85x_INCLUDED */
  44.